{template '../../header'}
{template '../../left'}

<div class="card">
    <div class="card-header">
        修改热词
    </div>
    <div class="card-body">
        <form method="post">
            <div class="form-group col-4">
                <label>标题</label>
                <input class="form-control form-control-sm" type="text" maxlength="50" name="title" value="{$detail['title']}">
            </div>
            <div class="form-group col-4">
                <label>排序</label>
                <input type="text" name="sort" class="form-control form-control-sm" value="{$detail['sort']}">
            </div>
            <div class="form-group col-4">
                <label>是否显示</label>
                <select name="state" class="form-control form-control-sm">
                    {loop $states $key $value}
                    <option value="{$key}" {if $detail['state']==$key}selected{/if}>{$value}</option>
                    {/loop}
                </select>
            </div>
            <div class="form-group col-12">
                <button type="submit" class="btn btn-success btn-sm"><i class="fa fa-save"></i> 保存</button>
            </div>
        </form>
    </div>
</div>

{template '../../footer'}   